<!--{include wap_header}-->
<script src="/static/js/index.js" type="text/javascript"></script>
<body id="orders">
<header class="slide">
<a href="javascript:history.back()" class="slide_back"></a>
<span>登录</span>
<a href="signmb.php" style="position:absolute;top:0;right:1rem;"><label>立即注册</label></a>
</header>

<!--${$notice = Session::Get('notice', true)}-->
<!--{if $notice}-->
<p id="okMsg" >{$notice}</p>
<!--{/if}-->
<!--${$error = Session::Get('error', true)}-->
<!--{if $error}-->
<p id="okMsg"  >{$error}</p>
<!--{/if}-->
<ul class="login-tabs">
	<li class="active"><a href="mlogin.php" title="">短信快捷登录</a></li>
    <li><a href="login.php" title="">账户密码登录</a></li>
</ul>
           
<div id="login" class="body account">
  <form id="signup-user-form" method="post" action="mlogin.php" class="validator">
          <div class="field" style="position:relative;">
          	<input type="text" size="30" name="mobile" id="mobile" class="common-text" require="true" datatype="mobile" placeholder="请输入您的手机号"/>
          	<a style="position:absolute;right:10px;top:18px;" href="javascript:;" onClick="getCode();"><font color="red"><b style="border:1px solid #06c1ae;border-radius:2px;color:#06c1ae;font-size:12px;padding:4px;">获取验证码</b></font></a>
          </div>
          <div class="field">  
            <input type="text" size="30" name="verifycode" id="signup-verifycode" class="common-text" require="true" datatype="require" maxLength="6" value="{$_POST['verifycode']}" placeholder="输入获取的验证码"/>
              </div>
            <script type="text/javascript">
            function getCode() {
                var mobile = trim(jQuery('#mobile').val());
                if(mobile == '') {
                    alert('手机号不能为空');
                    jQuery('#mobile').focus();
                } else {
                    X.get(WEB_ROOT + '/wap/getCode.php?mobile='+mobile+'&r='+ Math.random());
                }
            }

            function trim(str) {
                return str.replace(/^\s*(.*?)[\s\n]*$/g, '$1');
            }
            </script>
             <p class="c-submit">
                <input type="submit" value="登录" name="commit" id="submit" /></p>
        </form>
</div>

</div>


<!--{include wap_footer}-->
